package logic

import (
	"context"
	"user_srv/internal/dao"
	"user_srv/internal/svc"
	"user_srv/user"

	"github.com/zeromicro/go-zero/core/logx"
)

type MembershipUserListLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewMembershipUserListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MembershipUserListLogic {
	return &MembershipUserListLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *MembershipUserListLogic) MembershipUserList(in *user.MembershipUserListRequest) (*user.MembershipUserListResponse, error) {
	list := dao.MembershipUserList()
	return &user.MembershipUserListResponse{
		List: list,
	}, nil
}
